using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EasyOa.OA.BLL;
using EasyOa.OA.Entity;
using EasyOa.OA.Common;


namespace EasyOA
{
    public partial class login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            string userName = Request["UserName"];
            string userPassWord = Request["UserPassword"];


            UserInfo us = UserBLL.GetUserInfo(userName, userPassWord);

            if (us.UserID == 0)
            {

                Response.Redirect("Login.html");
            }
            else
            {
                Session.Add("UserInfo", us);

                Response.Redirect("MainMgr.aspx");
            }
        }
    }
}
